package com.lagou.edu.service.impl;

import com.lagou.edu.service.EmailService;
import org.apache.dubbo.config.annotation.Service;

@Service
public class EmailServiceImpl implements EmailService {


    @Override
    public boolean sendCode(String email, String code) {
        // 控制台打印代替发送邮件
        System.out.println("==========成功将验证码:" + code + "发送到：" + email + "邮箱");
        return true;
    }
}
